package com.wsl.Event;

import org.springframework.context.ApplicationEvent;

/**
 * @Author:WangShuliang
 * @Description:
 * @Date:Created in 15:18 2017/11/24
 * @Modified by:
 */
public class DemoEvent extends ApplicationEvent {
    private  String msg;
    public DemoEvent(Object source,String msg) {
        super(source);
        this.msg=msg;
        System.out.println(msg);
    }

    public String getMsg() {
        return msg;
    }

    public void setMsg(String msg) {
        this.msg = msg;
    }
}